﻿package mortal.game.net.command.copy.expCopy
{
    import Framework.MQ.*;
    import Message.Command.*;
    import Message.Game.*;
    import Message.Public.*;
    import mortal.game.cache.*;
    import mortal.game.mvc.*;
    import mortal.game.net.broadCast.*;
    import mortal.mvc.core.*;

    public class ExpCopyInfoCommand extends BroadCastCall
    {

        public function ExpCopyInfoCommand(param1:Object)
        {
            super(param1);
            return;
        }// end function

        override public function call(param1:MessageBlock) : void
        {
            var _loc_2:int = 0;
            var _loc_3:SExpCopyHurtInfo = null;
            var _loc_4:SMyExpCopyInfo = null;
            switch(param1.messageHead.command)
            {
                case EPublicCommand._ECmdPublicExpCopyBalanceInfo:
                {
                    _loc_2 = (param1.messageBase as SPublicInt).publicInt;
                    NetDispatcher.dispatchCmd(ServerCommand.ExpCopyPassInfo, _loc_2);
                    break;
                }
                case EPublicCommand._ECmdPublicExpCopyHurtInfo:
                {
                    _loc_3 = param1.messageBase as SExpCopyHurtInfo;
                    NetDispatcher.dispatchCmd(ServerCommand.ExpCopyHurtInfoUpdate, _loc_3);
                    break;
                }
                case EGateCommand._ECmdGateEnterExpCopyInfo:
                {
                    _loc_4 = param1.messageBase as SMyExpCopyInfo;
                    Cache.instance.copy.expCopy.myExpCopyInfo = _loc_4;
                    NetDispatcher.dispatchCmd(ServerCommand.ExpCopyInfoGet, null);
                    break;
                }
                default:
                {
                    break;
                }
            }
            return;
        }// end function

    }
}
